package com.markedquilt.homepage.vo;

import com.markedquilt.homepage.CourseInfo;
import com.markedquilt.homepage.UserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang.StringUtils;

import java.util.Collections;
import java.util.List;

/**
 * @author ZhangKe
 * @Description 用户信息请求对象定义
 * @date 2020/12/27 19:21.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserCourseInfo {

    private UserInfo userInfo;

    private List<CourseInfo> courseInfos;

    public static UserCourseInfo valid(){
        return new UserCourseInfo(UserInfo.invalid(), Collections.emptyList());
    }
}
